<?php

class SimpleWebService{

	const DIRECTO_INPUT = 0;
	const DIRECTO_OUTPUT = 1;

	// ONLY REQUESTS CREATION
	// knows URLs, required params, senders, uses request factories
	
	public function getRequest( $requestType, $params ){
		throw new Exception('executing abstract method');
	}

	static function getWebService($type){
		switch($type){
			case self::DIRECTO_INPUT:
				return new DirectoInputWebService();
				break;
			default:
				throw Exception('wrong webservice type');
				break;
		}

	}
	
}